package org.visionlibrary.image.filters.edge;

import java.awt.Point;

import org.visionlibrary.image.model.ConvolutionKernel;


public class KirschCompassEdgeDetector extends CompassEdgeDetector {
	public KirschCompassEdgeDetector() {
		kernels = new ConvolutionKernel[8];
		kernels[0] = new ConvolutionKernel(3, 3, 
				new float[] {-3, -3, 5, -3, 0, 5, -3, -3, 5},
				1, new Point(1,1));
		
		kernels[1] = new ConvolutionKernel(3, 3, 
				new float[] {-3, 5, 5, -3, 0, 5, -3, -3, -3},
				1, new Point(1,1));
		
		kernels[2] = new ConvolutionKernel(3, 3, 
				new float[] {5, 5, 5, -3, 0, -3, -3, -3, -3},
				1, new Point(1,1));
		
		kernels[3] = new ConvolutionKernel(3, 3, 
				new float[] {5, 5, -3, 5, 0, -3, -3, -3, -3},
				1, new Point(1,1));
		
		kernels[4] = new ConvolutionKernel(3, 3, 
				new float[] {5, -3, -3, 5, 0, -3, 5, -3, -3},
				1, new Point(1,1));
		
		kernels[5] = new ConvolutionKernel(3, 3, 
				new float[] {-3, -3, -3, 5, 0, -3, 5, 5, -3},
				1, new Point(1,1));
		
		kernels[6] = new ConvolutionKernel(3, 3, 
				new float[] {-3, -3, -3, -3, 0, -3, 5, 5, 5},
				1, new Point(1,1));
		
		kernels[7] = new ConvolutionKernel(3, 3, 
				new float[] {-3, -3, -3, -3, 0, 5, -3, 5, 5},
				1, new Point(1,1));
	}
}
